<?php
class Adm_Action_Helper_BaseInit 
	extends Zend_Controller_Action_Helper_Abstract
{
	public function preDispatch()
	{
		$this->baseInit();
	}
	
	public function baseInit()
	{
		$session 	= Zend_Registry::get('session');
		$controller = $this->getActionController();
		$request	= $this->getRequest();
		$config		= Zend_Registry::get('configuration');

		$controller->lang = $config->language;	
		
		$controller->view->system		= $config->system;
		$controller->view->lang = $config->language;
		$controller->view->controller = $request->getControllerName();
		$controller->view->action = $request->getActionName();
		
		$controller->view->googleAnalyticsTrack = $config->google->analytics->track;
		$controller->view->googleAnalyticsKey = $config->google->analytics->key;
		$controller->view->googleAnalyticsDomain = $config->google->analytics->domain;
	}
	

}